import request from '@/utils/request'

// 查询产品模型上线列表
export function listProduct(query) {
  return request({
    url: '/design/product/list',
    method: 'get',
    params: query
  })
}

// 查询产品模型上线详细
export function getProduct(id) {
  return request({
    url: '/design/product/' + id,
    method: 'get'
  })
}
// 查询产品价格库存
export function getProductInfo(query) {
  return request({
    url: '/design/proinfo',
    method: 'get',
    params: query
  })
}

// 新增产品模型上线
export function addProduct(data) {
  return request({
    url: '/design/product',
    method: 'post',
    data: data
  })
}

// 修改产品模型上线
export function updateProduct(data) {
  return request({
    url: '/design/product',
    method: 'put',
    data: data
  })
}

// 删除产品模型上线
export function delProduct(id) {
  return request({
    url: '/design/product/' + id,
    method: 'delete'
  })
}

// 导出产品模型上线
export function exportProduct(query) {
  return request({
    url: '/design/product/export',
    method: 'get',
    params: query
  })
}

// 获取产品模型列表
export function getKjlModelList(query) {
  return request({
    url: '/design/product/selectKjlModelListPage',
    method: 'post',
    params: query
  })
}

